package com.ryan.mms.privilage.service;

import java.io.Serializable;
import java.util.List;

import com.ryan.framework.dto.Dto;
import com.ryan.framework.model.Model;
import com.ryan.framework.service.BaseService;
import com.ryan.framework.tag.pagination.Page;
import com.ryan.mms.privilage.dto.ResourceDto;
import com.ryan.mms.privilage.model.Resource;

public interface ResourceService<T extends Dto,M extends Model,PK extends Serializable> extends BaseService<ResourceDto,Resource,Long>{
	public ResourceDto findByResourceCode(String resourceCode);	
	public List<ResourceDto> getAllResourceByOperatorId(Long operatorId);
	public void deleteAll(List<PK> pks);
	public List<ResourceDto> find(Page page, ResourceDto resourceDto);
}
